import request from '@/utils/request'

// 查询在管基金列表
export function listGpRemanageFund(query) {
  return request({
    url: '/gp/gpRemanageFund/list',
    method: 'get',
    params: query
  })
}

// 查询在管基金详细
export function getGpRemanageFund(id) {
  return request({
    url: '/gp/gpRemanageFund/' + id,
    method: 'get'
  })
}

// 保存在管基金
export function saveGpRemanageFund(data) {
  return request({
    url: '/gp/gpRemanageFund/save',
    method: 'post',
    data: data
  })
}

// 计算TVPI与DPI
export function calculate(data) {
  return request({
    url: '/gp/gpRemanageFund/calculate',
    method: 'post',
    data: data
  })
}

// 删除在管基金
export function delGpRemanageFund(id) {
  return request({
    url: '/gp/gpRemanageFund/' + id,
    method: 'delete'
  })
}

// 导出在管基金
export function exportGpRemanageFund(query) {
  return request({
    url: '/gp/gpRemanageFund/export',
    method: 'get',
    params: query
  })
}
